package com.leyu.mall.site.shopcar.controller;

import javax.xml.registry.infomodel.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;

@Controller  
@SessionAttributes("currentUser")  
public class GreetingController {  
    @RequestMapping  
    public void hello(@ModelAttribute("currentUser") User user) {  
        //user.sayHello()  
    }  
}  